package cn.wen.mall.nosql.mongodb.repository;

import cn.wen.mall.nosql.mongodb.document.MemberReadHistory;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface MemberReadHistoryRepository extends MongoRepository<MemberReadHistory, String> {
    /*根据会员id按照时间倒序获取浏览记录*/
    List<MemberReadHistory> findByMemberIdOrderByCreateTimeDesc(Long memberId);


}
